<?php


namespace app\api\controller;


use app\admin\model\Dvideo;
use app\admin\model\ShortVideo;
use app\admin\model\Video;
use app\common\controller\Api;
use app\common\model\Config;
use think\Request;
use app\admin\model\Comment as Comments;
use think\Db;

class Collection extends Api
{
    protected $noNeedLogin = ['*'];



    //小视频评论查询
    public function list(Request $request)
    {
        if (!$request->isGet()) {
            $this->error('ＭＵＳＴ　ＢＥ ＧＥＴ', '', 100);
        }
        $where['userid']=$this->auth->id;

        $list =\app\admin\model\Collection::with('video')->where($where)->order('id', 'desc')->select();
        $this->success('收藏', $list, 200);
    }

}
